package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-10-17
 */
@TableName("door_alarm_record")
public class DoorAlarmRecord extends Model<DoorAlarmRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 卡号
     */
    private String cardno;
    /**
     * 开门状态
     */
    @TableField("open_door_status")
    private String openDoorStatus;
    /**
     * 门号
     */
    @TableField("door_number")
    private String doorNumber;
    /**
     * 进出
     */
    @TableField("in_out")
    private String inOut;
    /**
     * 刷卡时间
     */
    private String time;
    /**
     * 预留字段1
     */
    private String note1;
    /**
     * 预留字段2
     */
    private String note2;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getOpenDoorStatus() {
        return openDoorStatus;
    }

    public void setOpenDoorStatus(String openDoorStatus) {
        this.openDoorStatus = openDoorStatus;
    }

    public String getDoorNumber() {
        return doorNumber;
    }

    public void setDoorNumber(String doorNumber) {
        this.doorNumber = doorNumber;
    }

    public String getInOut() {
        return inOut;
    }

    public void setInOut(String inOut) {
        this.inOut = inOut;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getNote1() {
        return note1;
    }

    public void setNote1(String note1) {
        this.note1 = note1;
    }

    public String getNote2() {
        return note2;
    }

    public void setNote2(String note2) {
        this.note2 = note2;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DoorAlarmRecord{" +
        "id=" + id +
        ", name=" + name +
        ", cardno=" + cardno +
        ", openDoorStatus=" + openDoorStatus +
        ", doorNumber=" + doorNumber +
        ", inOut=" + inOut +
        ", time=" + time +
        ", note1=" + note1 +
        ", note2=" + note2 +
        "}";
    }
}
